/**
 * 
 */
function getLocation(cellNo)
{
	var url = "http://localhost:8080/JAXB/rest/services/location/" + cellNo;
	var representationOfDesiredState = "The cheese is old and moldy, where is the bathroom?";

	var client = new XMLHttpRequest();

	client.open("GET", url, false);

	client.setRequestHeader("Content-Type", "text/plain");

	client.send(representationOfDesiredState);

	if (client.status == 200)
		{
		var jsonObject = JSON.parse(client.responseText);
		var locationObject = jsonObject.location;
		//alert("Longtitude=" + locationObject.longtitude + " Latitude=" + locationObject.latitude);
		setLatLng(locationObject.latitude,locationObject.longtitude);
		}
	else
		alert("The request did not succeed!\n\nThe response status was: " + client.status + " " + client.statusText + ".");

	
}
function getLocation2()
{
	getLocation(document.getElementById("cellNo").value);
}